﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YbService.Entity.Dto;

namespace HzybService.BaseOutData
{
    public class FeiYongJs : HzybOutData
    {
        /// <summary>
        /// 1 医疗机构编号
        /// </summary>
        public string YiLiaoJgbh { set; get; }

        /// <summary>
        /// 2 个人编号
        /// </summary>
        public string GeRenBh { set; get; }

        /// <summary>
        /// 3 就诊流水号
        /// </summary>
        public string JiuZhenLsh { set; get; }

        /// <summary>
        /// 4 单据号
        /// </summary>
        public string DanJuHao { set; get; }

        /// <summary>
        /// 5 交易类型
        /// </summary>
        public string JiaoYiLx { set; get; }

        /// <summary>
        /// 6 医院交易流水号
        /// </summary>
        public string YiYuanJylsh { set; get; }

        /// <summary>
        /// 7 中心交易流水号
        /// </summary>
        public string ZhongXinJylsh { set; get; }

        /// <summary>
        /// 8 医疗费总额
        /// </summary>
        public decimal YiLiaoFeiZe { set; get; }

        /// <summary>
        /// 9 本年账户支付
        /// </summary>
        public decimal BenNianZhzf { set; get; }

        /// <summary>
        /// 10 历年账户支付
        /// </summary>
        public string LiNianZhzf { set; get; }

        /// <summary>
        /// 11 历年账户支付自负部分
        /// </summary>
        public decimal LiNianZhzfzf { set; get; }

        /// <summary>
        /// 12 医保基金支付
        /// </summary>
        public decimal YiBaoJjzf { set; get; }

        /// <summary>
        /// 13 本次现金支付
        /// </summary>
        public decimal BenCiXjzf { set; get; }

        /// <summary>
        /// 14 本次现金支付自负部分
        /// </summary>
        public decimal BenCiXjzfzf { set; get; }

        /// <summary>
        /// 15 自理金额
        /// </summary>
        public decimal ZiLiJe { set; get; }

        /// <summary>
        /// 16 自费金额
        /// </summary>
        public decimal ZiFeiJe { set; get; }

        /// <summary>
        /// 17 超限价自费
        /// </summary>
        public string ChaoXianJzf { set; get; }

        /// <summary>
        /// 18 本年账户余额
        /// </summary>
        public decimal BenNianZhye { set; get; }

        /// <summary>
        /// 19 历年账户余额
        /// </summary>
        public decimal LiNianZhye { set; get; }

        /// <summary>
        /// 20 住院次数
        /// </summary>
        public string ZhuYuanCx { set; get; }

        /// <summary>
        /// 21 本年个人现金支付累计
        /// </summary>
        public decimal BenNianGrxjzflj { set; get; }

        /// <summary>
        /// 22 本年度账户支付累计
        /// </summary>
        public decimal BenNianZhzflj { set; get; }

        /// <summary>
        /// 23 本年进入统筹累计
        /// </summary>
        public decimal BenNianJrtclj { set; get; }

        /// <summary>
        /// 24 本年门诊起付标准支付累计
        /// </summary>
        public decimal BenNianMzqfbzzflj { set; get; }

        /// <summary>
        /// 25 结算日期
        /// </summary>
        public string JieSuanRq { set; get; }

        /// <summary>
        /// 26 业务周期号
        /// </summary>
        public string YeWuZqh { set; get; }

        /// <summary>
        /// 27 结算流水号
        /// </summary>
        public string JieSuanLsh { set; get; }

        /// <summary>
        /// 28 重病基金支出
        /// </summary>
        public decimal ZhongBinJjzc { set; get; }

        /// <summary>
        /// 29 困难救助基金支出
        /// </summary>
        public decimal KunNanJzjjzc { set; get; }

        /// <summary>
        /// 30 伤残基金支出自理
        /// </summary>
        public decimal ShangCanJjzczl { set; get; }

        /// <summary>
        /// 31 伤残基金支出自负
        /// </summary>
        public decimal ShangCanJjzczf { set; get; }

        /// <summary>
        /// 32 劳模基金支出
        /// </summary>
        public decimal LaoMoJjzc { set; get; }

        /// <summary>
        /// 33 保健基金支出
        /// </summary>
        public decimal BaoJianaJjzc { set; get; }

        /// <summary>
        /// 34 统筹基金支出
        /// </summary>
        public decimal TongCouJjzc { set; get; }

        /// <summary>
        /// 35 起付标准自付
        /// </summary>
        public decimal QiFuBzzf { set; get; }

        /// <summary>
        /// 36 提示信息
        /// </summary>
        public decimal TiShiXx { set; get; }

        /// <summary>
        /// 37 现金支付自理
        /// </summary>
        public decimal XianJinZfzl { set; get; }

        /// <summary>
        /// 38 现金支付自费
        /// </summary>
        public decimal XianJinZfzf { set; get; }

        /// <summary>
        /// 39 历年账户支付自理
        /// </summary>
        public decimal LiNianZhzfzl { set; get; }

        /// <summary>
        /// 40 历年账户支付自费
        /// </summary>
        public decimal LiNianZhzfzfei { set; get; }

        /// <summary>
        /// 41 自负金额
        /// </summary>
        public decimal ZiFuJe { set; get; }

        /// <summary>
        /// 42 保健基金自负
        /// </summary>
        public decimal BaoJianJjzf { set; get; }

        /// <summary>
        /// 43 并发症总费用
        /// </summary>
        public decimal BingFaZzfy { set; get; }

        /// <summary>
        /// 44 并发症自理自费
        /// </summary>
        public decimal BinFaZzlzf { set; get; }

        /// <summary>
        /// 45 本年度自负累计数
        /// </summary>
        public decimal BenNianZflj { set; get; }

        /// <summary>
        /// 46 建国前老工人基金支出
        /// </summary>
        public decimal JianGuoQlgrjjzc { set; get; }

        /// <summary>
        /// 47 医院承担费用
        /// </summary>
        public decimal YiYuanCdfy { set; get; }

        /// <summary>
        /// 48 其他基金支出
        /// </summary>
        public decimal QiTaJjzc { set; get; }

        /// <summary>
        /// 49 商保定点标志
        /// </summary>
        public decimal ShangBaoDdbz { set; get; }

        /// <summary>
        /// 50 商保责任二理赔标志
        /// </summary>
        public decimal ShangBaoZrelbbz { set; get; }

        /// <summary>
        /// 51 本次商保责任一起付线支
        /// </summary>
        public decimal BenCiSbzryqfxzf { set; get; }

        /// <summary>
        /// 52 本次商保责任一进入金
        /// </summary>
        public decimal BenCiSbzeyjrje { set; get; }

        /// <summary>
        /// 53 本次商保责任一赔付金
        /// </summary>
        public decimal BenCiSbzeypfje { set; get; }

        /// <summary>
        /// 54 本次商保责任二起付线支fu
        /// </summary>
        public decimal BenCiSbzerqfxzf { set; get; }

        /// <summary>
        /// 55 本次商保责任二进入金
        /// </summary>
        public decimal BenCiSbzerjrje { set; get; }

        /// <summary>
        /// 56 本次商保责任二赔付金
        /// </summary>
        public decimal BenCiSbzrepfje { set; get; }

        /// <summary>
        /// 57 本次商保责任一赔付自理金额
        /// </summary>
        public decimal BenCiSbzeypfzlje { set; get; }

        /// <summary>
        /// 58 本次商保责任一赔付自负金额
        /// </summary>
        public decimal BenCiSbzeypfzf { set; get; }

        public FeiYongJs(HzybReturn result)
                    : base(result)
        {
            if (result.YB_RESULT < 0) return;
            int p = 0;
            YiLiaoJgbh = AnalyseSingleOutData(0)[p++].Trim();
            GeRenBh = AnalyseSingleOutData(0)[p++].Trim();
            JiuZhenLsh = AnalyseSingleOutData(0)[p++].Trim();
            DanJuHao = AnalyseSingleOutData(0)[p++].Trim();
            JiaoYiLx = AnalyseSingleOutData(0)[p++].Trim();
            YiYuanJylsh = AnalyseSingleOutData(0)[p++].Trim();
            ZhongXinJylsh = AnalyseSingleOutData(0)[p++].Trim();
            YiLiaoFeiZe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenNianZhzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            LiNianZhzf = AnalyseSingleOutData(0)[p++].Trim();
            LiNianZhzfzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            YiBaoJjzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiXjzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiXjzfzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZiLiJe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZiFeiJe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ChaoXianJzf = AnalyseSingleOutData(0)[p++].Trim();
            BenNianZhye = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            LiNianZhye = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZhuYuanCx = AnalyseSingleOutData(0)[p++].Trim();
            BenNianGrxjzflj = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenNianZhzflj = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenNianJrtclj = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenNianMzqfbzzflj = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            JieSuanRq = AnalyseSingleOutData(0)[p++].Trim();
            YeWuZqh = AnalyseSingleOutData(0)[p++].Trim();
            JieSuanLsh = AnalyseSingleOutData(0)[p++].Trim();
            ZhongBinJjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            KunNanJzjjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ShangCanJjzczl = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ShangCanJjzczf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            LaoMoJjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BaoJianaJjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            TongCouJjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            QiFuBzzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            TiShiXx = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            XianJinZfzl = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            XianJinZfzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            LiNianZhzfzl = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            LiNianZhzfzfei = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZiFuJe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BaoJianJjzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BingFaZzfy = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BinFaZzlzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenNianZflj = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            JianGuoQlgrjjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            YiYuanCdfy = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            QiTaJjzc = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ShangBaoDdbz = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ShangBaoZrelbbz = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzryqfxzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzeyjrje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzeypfje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzerqfxzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzerjrje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzrepfje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzeypfzlje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BenCiSbzeypfzf = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
        }
    }
}